Skip to content

fix: publish tui runtime dependencies#11

Merged
danyel117 merged 1 commit into
prevalentWare:mainfrom
fengjikui:codex/tui-runtime-dependencies
Jul 9, 2026
Merged

fix: publish tui runtime dependencies#11
danyel117 merged 1 commit into
prevalentWare:mainfrom
fengjikui:codex/tui-runtime-dependencies

Conversation

@fengjikui

Copy link
Copy Markdown
Contributor

What changed

  • Moves @opentui/solid and solid-js from devDependencies to dependencies.
  • Adds a package manifest regression test for the published TUI entrypoint runtime imports.
  • Updates bun.lock to match the package dependency classification.

Why

The package publishes src/tui.tsx through the ./tui export. That source file uses the OpenTUI Solid JSX runtime, so consumers that install the published package without dev dependencies need @opentui/solid and solid-js available at runtime.

I reproduced the install-path failure with a packed tarball before this change:

pkg=$(npm pack --silent)
tmp=$(mktemp -d)
cp "$pkg" "$tmp/"
(cd "$tmp" && npm init -y >/dev/null && npm install --omit=dev "./$pkg" >/dev/null && bun -e 'import("@prevalentware/opencode-goal-plugin/tui")')

Before the fix, that failed with:

Cannot find module '@opentui/solid/jsx-dev-runtime' from .../node_modules/@prevalentware/opencode-goal-plugin/src/tui.tsx

After the fix, the same clean packed install/import completes with import ok.

Validation

  • bun test
  • bun run lint
  • bun run typecheck
  • bun run build
  • bun run pack:dry-run
  • clean packed install with npm install --omit=dev plus bun -e 'import("@prevalentware/opencode-goal-plugin/tui")'

@danyel117 danyel117 merged commit 132230e into prevalentWare:main Jul 9, 2026
@danyel117

Copy link
Copy Markdown
Contributor

Thanks for the contribution. This was a real packaging issue because the published ./tui export points at src/tui.tsx, which imports solid-js and uses the @opentui/solid JSX runtime at load time.

I validated the change locally with:

  • bun run typecheck
  • bun run lint
  • bun test
  • bun run build
  • bun run pack:dry-run
  • a packed install using npm install --omit=dev followed by bun -e 'import("@prevalentware/opencode-goal-plugin/tui")', which now imports successfully.

Merged via squash. Thanks again for catching and fixing this.

@danyel117

Copy link
Copy Markdown
Contributor

Published in @prevalentware/opencode-goal-plugin@0.1.24.

Release: https://github.com/prevalentWare/opencode-goal-plugin/releases/tag/v0.1.24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants